//请求参数接口
export interface IParams {
  [key: string]: any;
}
//请求函数接口
export interface IajaxFun {
  (url: string, method: string, params?: IParams | {}): Promise<any>;
}
//请求结果接口
export interface IajaxData {
  code?: number;
  data: any;
  message?: string;
  [key: string]: any;
}
//轮播图数据接口
export interface Iloop {
  belongId: number | string | null;
  cdate: number | string;
}
// 首页数据接口
type TBase = number | string | null;
export interface IHomeData {
  belongId?: TBase;
  cdate: TBase;
  id: number;
  logo: string;
  mdate: TBase;
  oid: number;
  status: boolean;
  title: null;
  url: string;
  extendDesc?: TBase;
  extendId?: TBase;
  isHaveStock?: TBase;
  isSale?: boolean;
  locUrl?: TBase;
  minRent?: TBase;
  productId?: number;
  rentTypeId?: number;
  sale?: boolean;
  salePrice?: TBase;
  name?: string;
  products?: IHomeData[];
}
export interface canshu {
  query: string | number;
  pagenum: number;
  pagesize: number;
}
